import { apiSlice } from "@store/apiSlice/index";

export const profileApiSlice = apiSlice.injectEndpoints({
  endpoints: (builder) => ({
    // 获取登录用户个人资料
    requestProfile: builder.query<ProfileResponse, undefined>({
      query: () => ({
        url: "/api/patient/myUser",
      }),
    }),
  }),
});

export const { useRequestProfileQuery } = profileApiSlice;